import request from '@/utils/request'

export function getAlipayRecordList(index,size){
	return request({
		url: '/admin/alipayRecord/getList',
		method: 'post',
		data: {
		  index,
		  size
		}
	})
}

export function alipayRefund(outTradeNo,refundAmount,refundReason){
	return request({
		url:'/admin/alipay/alipayRefund',
		method:'post',
		data:{
			outTradeNo,
			refundAmount,
			refundReason,
		}
	})
}

export function getAlipayRefundRecordList(index,size){
	return request({
		url: '/admin/alipayRefundRecord/getList',
		method: 'post',
		data: {
		  index,
		  size
		}
	})
}

export function doAlipayCheckParam(amount,message){
	return request({
		url:'/admin/alipay/doAlipayCheckParam',
		method:'post',
		data:{
			amount,
			message,
		}
	})
}